package com.baoleme.entity.dto;

import jakarta.validation.constraints.NotNull;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

import java.util.Date;

@Data
public class OrderConditionalSearchDto {
    private String id;
    @Range(min = 0, max = 6, message = "状态输入不正确，无法查询")
    private Integer status;
    private Date hiTime;
    private Date loTime;
    @Range(min = 0, max = 2, message = "支付方式输入不正确，无法查询")
    private Integer payMethod;
    @Range(min = 1, message = "页码不正确，无法查询")
    private Integer current;
    @Range(min = 1, max = 20, message = "页大小不正确，无法查询")
    private Integer pageSize;
}
